# The Book of Ruby - http://www.sapphiresteel.com

p(Symbol.all_symbols)
puts(p(Symbol.all_symbols.length)) # shows number of symbols in Ruby
p(Symbol.all_symbols[0, 10])
# p [:a,:c,:b].sort #<= can't sort symbols in Ruby 1.8! Works in 1.9
str_arr = Symbol.all_symbols.collect(&:to_s)
puts(str_arr.sort)
